package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class ForgetUserPassWordRequest {

    @NotNull(message = "验证码不能为空")
    @ApiModelProperty("验证码id")
    private Long smsId;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty("验证码")
    private String codes;

    @NotBlank(message = "第一次密码不能为空")
    @Pattern(regexp="^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$",message = "密码格式不正确")
    @ApiModelProperty("第一次密码")
    private String onePwd;

    @NotBlank(message = "第二次密码不能为空")
    @Pattern(regexp="^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$",message = "密码格式不正确")
    @ApiModelProperty("第二次密码")
    private String twoPwd;

    @NotBlank(message = "账号不能为空")
    @ApiModelProperty("账号 (手机号/邮箱)")
    private String userAccount;
}
